package jdbmaplite.mapper;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Savepoint;

public interface DBDao {

	/**
	 * Get Connection
	 * 
	 * @return Connection
	 * @throws SQLException
	 */
	public Connection getConnection() throws SQLException;

	/**
	 * Commit Quietly
	 * 
	 * @param conn
	 *            Connection
	 */
	public void commitQuietly(Connection conn);

	/**
	 * Close Quietly
	 * 
	 * @param conn
	 *            Connection
	 */
	public void closeQuietly(Connection conn);

	/**
	 * Rollback Quietly
	 * 
	 * @param conn
	 *            Connection
	 */
	public void rollbackQuietly(Connection conn);

	/**
	 * Rollback Quietly
	 * 
	 * @param conn
	 *            Connection
	 * @param savepoint
	 *            Savepoint
	 */
	public void rollbackQuietly(Connection conn, Savepoint savepoint);

}